package com.hziee.graduate.ticket.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hziee.graduate.ticket.dao.SeatScheduleDao;
import com.hziee.graduate.ticket.dto.R;
import com.hziee.graduate.ticket.entity.SeatSchedule;
import com.hziee.graduate.ticket.service.SeatScheduleService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("seatScheduleService")
public class SeatScheduleServiceImpl extends ServiceImpl<SeatScheduleDao, SeatSchedule> implements SeatScheduleService {

    @Override
    public R<List<SeatSchedule>> getSeatBySchedule(Long scheduleId) {
        List<SeatSchedule> seatBySchedule = query().eq("schedule_id", scheduleId).list();
        return R.success(seatBySchedule);
    }
}

